import axios from "../../utils/index"
function getList(query){
    return axios.get("/shop/list",{params:query})
}
function addList(body){
    return axios.post("/shop/list",body)
}
function editList(body){
    return axios.put("/shop/list",body)
}
function delList (id){
   return axios.delete(`/shop/list/${id}`) 
}
export default{
    getList,
    addList,
    editList,
    delList
}